const { Sequelize } = require('sequelize');
const config=require('./config.js')
const sequelize = new Sequelize({
    dialect: 'mysql',
    host: config.mySql.host,   // MySQL 地址
    username: config.mySql.user,    // 数据库用户名
    password: config.mySql.password,// 数据库密码
    database: config.mySql.name,  // 数据库名称
});

module.exports = sequelize;
